

<div class="dp100">
	<h2 class="sepH_b">Thống kê nội dung hoạt động NHĐ - <?php echo $c_city["City"]["name"] ?> - quý <?php echo $c_quarter ?>/<?php echo $c_year ?></h2>
	
<?php if($doctor_student) { ?>
	
	<table cellspacing="0" cellpadding="0" border="0" class="table_a formEl_a smpl_tbl">
		<thead>
			<tr>
				<th colspan="3" rowspan="2"><?php __('Nội dung hoạt động'); ?></th>
				<th colspan="2"><?php __('Trường'); ?></th>
				<th colspan="2"><?php __('Học sinh'); ?></th>
			</tr>
			<tr>				
				<th><?php __('Số lượng'); ?></th>
				<th><?php __('Tỉ lệ(%) đáp ứng'); ?></th>
				<th><?php __('Số lượng'); ?></th>
				<th><?php __('Tỉ lệ(%) đáp ứng'); ?></th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($nhdActivities as $b => $item) { ?>
				<tr>
					<td><?php $i = $b == 0 ? 0 : $b-1; echo $b == 0 ? "ND".$item["NhdActivityCategory"]["nd"] : ''; echo $item["NhdActivityCategory"]["nd"] != $nhdActivities[$i]["NhdActivityCategory"]["nd"] ? "ND".$item["NhdActivityCategory"]["nd"] : ''; ?></td>
					<td><?php $i = $b == 0 ? 0 : $b-1; echo $b == 0 ? $item["NhdActivityCategory"]["name"] : ''; echo $item["NhdActivityCategory"]["name"] != $nhdActivities[$i]["NhdActivityCategory"]["name"] ? $item["NhdActivityCategory"]["name"] : ''; ?></td>
					<td><?php echo $item["NhdActivity"]["name"] ?></td>					
					<td align="right">
						
							<?php echo isset($item["NhdActivityRecord"]["school_num"]) && $item["NhdActivityRecord"]["school_num"] != '' ? $item["NhdActivityRecord"]["school_num"] : '0'; ?>
					</td>
					<td align="right">
							<?php echo isset($item["NhdActivityRecord"]["school_rate"]) &&  $item["NhdActivityRecord"]["school_rate"] != '' ? $item["NhdActivityRecord"]["school_rate"] : '0'; ?>
					</td>
					<td align="right">
							<?php echo isset($item["NhdActivityRecord"]["student_num"]) &&  $item["NhdActivityRecord"]["student_num"] != '' ? $item["NhdActivityRecord"]["student_num"] : '0'; ?>
					</td>
					<td align="right">
							<?php echo isset($item["NhdActivityRecord"]["student_rate"]) &&  $item["NhdActivityRecord"]["student_rate"] != '' ? $item["NhdActivityRecord"]["student_rate"] : '0'; ?>
					</td>
					
				</tr>
			<?php } ?>		
		</tbody>
	</table>
	<ul>
            <li>Tỉ lệ BS/học sinh: <strong>1/<?php echo $doctor_student ?></strong></li>
	    <li>Tỉ lệ CBRHM/học sinh: <strong>1/<?php echo $nondoctor_student ?></strong></li>
        </ul>
	
<?php } else { ?>
	Thông tin chưa được cập nhật
<?php } ?>

<!--<div style="text-align: right">(Đơn vị: thiết bị)</div>-->
</div>